package com.wangxiaonan.apiversion.controller;

import com.wangxiaonan.apiversion.common.annotation.ApiVersion;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * V-0.1
 *
 * @Author: wangxiaonan
 * @Date: 2018/12/13
 **/
@ApiVersion(1)
@RestController
@RequestMapping("/{api_version}")
public class ApiVersionBaseController {

    @RequestMapping("/version")
    public String v1() {
        return "version 1";
    }
}
